package com.infotel.chat;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlType;

@XmlType(propOrder = { "id", "email", "gender" })
@XmlAccessorType(XmlAccessType.PROPERTY)
public class Users {
    
    private String id;
    private String email;
    private String gender;

    public Users(String id, String email, String gender) {
        this.id = id;
        this.email = email;
        this.gender = gender;
    }

    public Users() {
        this.id = null;
        this.email = null;
        this.gender = null;
    }
    public Users(String id) {
        this.id = id;
        this.email = "coucou@123.com";
        this.gender = "F";
    }

    
    @XmlAttribute(required = true)
    @XmlID
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @XmlAttribute(required = true)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @XmlAttribute(required = true)
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String toString() {

        return this.id + " " + this.email + " " + this.gender;
    }

}
